import { SoundTypeOption } from "./SoundDefine";

//测试使用，实际应用通过sound表配置
export enum SoundType {

    /**背景音乐 */
    Bgm = 0,

    /**角色语音 */
    Cv,

    /**按钮音效 */
    Button
}

//声音配置
export const SoundConfig: { [key: number]: SoundTypeOption } = {

    [SoundType.Bgm]: {
        volume: 20,
        max: 1,
        interval: 200,
        replaceable: true,
        supresses: [
            {
                type: SoundType.Cv,
                attackTime: 200,
                ratio: 50,
                releaseTime: 200
            }
        ]
    },

    [SoundType.Cv]: {
        volume: 100,
        max: 5,
        interval: 200,
        replaceable: true,
    },

    [SoundType.Button]: {
        volume: 100,
        max: 5,
        interval: 200,
        replaceable: true,
    }
}
